package com.risenb.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value = "error")
public class ErrorController {
	/**
	 * 没有钱权限跳转页面
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value = "authority")
	public String authority(HttpServletRequest request, HttpServletResponse response){
		return "manage/error/error";
	}
	/**
	 * 资源未找到
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value = "notFound")
	public String notFound(HttpServletRequest request, HttpServletResponse response){
		String servletPath = request.getServletPath();
		return "manage/error/notFound";
	}
	/**
	 * 服务器内部错误
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping(value = "innerError")
	public String innerError(HttpServletRequest request, HttpServletResponse response){
		return "manage/error/innerError";
	}
	
}
